var Booker = require("./booker.js").Booker;
var configs = require("./configs.js").configs;

//to do the initial of book program.
function start() {
    var booker = new Booker(configs);

    var readline = require("readline");
    var rl = readline.createInterface({
        input: process.stdin,
        output: process.stdout,
    });

    rl.on("line", function(line) {
        booker.receive(line);
    });
}

start();